Menu icon Foundation
Error when running 'foundation watch'

Hi, I recently updated node and now I cant run foundation watch. Nothing in the project has changed. Any idea what is causing this? 

Your environment has been set up for using Node.js 7.5.0 (x64) and npm.

C:\Users\Ryan>cd desktop

C:\Users\Ryan\Desktop>cd proj

C:\Users\Ryan\Desktop\proj>foundation watch
module.js:472
    throw err;
    ^

Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (C:\Users\Ryan\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\graceful-fs\fs.js:11:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

C:\Users\Ryan\Desktop\proj>

Thanks

npmfoundation watch

Hi, I recently updated node and now I cant run foundation watch. Nothing in the project has changed. Any idea what is causing this? 

Your environment has been set up for using Node.js 7.5.0 (x64) and npm.

C:\Users\Ryan>cd desktop

C:\Users\Ryan\Desktop>cd proj

C:\Users\Ryan\Desktop\proj>foundation watch
module.js:472
    throw err;
    ^

Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (C:\Users\Ryan\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\graceful-fs\fs.js:11:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

C:\Users\Ryan\Desktop\proj>

Thanks

Rafi Benkual over 2 years ago

I have heard of issues with various npm packages with the latest node. We'd recommend version 6 until 7 is further along.

I'm using the latest 6 which is 6.9.5