Cannot find module 'coffee-script' using require grunt - node.js

Cannot find module 'coffee-script' using grunt from a script
module.js:338
throw err;
^
Error: Cannot find module 'coffee-script'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\Safa\node_modules\grunt\lib\grunt.js:16:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

Try running
npm install coffee-script#
and then running it again. It is recommended adding it to your package.json file if you haven't already, so in the future you can simply run
npm install

Related

ATOM/apm: can't find module "npm"

In Windows 10:
C:\Users\broven>apm
module.js:340
throw err;
^
Error: Cannot find module 'npm'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (E:\Program Files (x86)\atom\app-1.8.0\resources\app\apm\lib\apm-cli.js:12:9)
at Object.<anonymous> (E:\Program Files (x86)\atom\app-1.8.0\resources\app\apm\lib\apm-cli.js:237:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Error tell me that i don't have npm , but I insatll it,and up to date.
what's the problem?
C:\Users\broven>npm
Usage: npm <command>
npm#2.15.8 D:\Program Files\nodejs\node_modules\npm

couldn't install beautiful-docs npm library

I want to install beautiful-docs library from master source.
https://github.com/beautiful-docs/beautiful-docs
I am trying npm install -g command and seems everything is well.
then when i run bfdocs command, i am getting following error:
module.js:338
throw err;
^
Error: Cannot find module '../lib/command.js'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/beautiful-docs/bin/bfdocs:2:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
any idea about this error?

npm installation issue in windows

executing command: npm --version and getting exception
module.js:338
throw err;
^
Error: Cannot find module 'semver'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\anand\AppData\Roaming\npm\node_modules\npm\l
ib\config\defaults.js:6:14)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
please help me how to fix these, I tried to reinstall node.js but still it is not fixed.

Unable to install Mean Cli on mac

I get following exception when I run sudo npm install -g mean-cli
module.js:338
throw err;
^
Error: Cannot find module 'are-we-there-yet'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/npmlog/log.js:2:16)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
Anyone has faced same issue? I have npm and node installed on my mac and its included in PATH

OData, JayData, and node.js: Cannot find ExpressionVisitor.js

I ran npm install odata-server, but calling require('odata-server') fails with the following:
Using JayLint for code parsing
module.js:340
throw err;
^
Error: Cannot find module './Types/Expressions/Visitors/ExpressionVisitor.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/home/anewman/node_modules/odata-server/lib/jaydata/lib/index.js:28:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
Try to reinstall the module and check that the missing file is there. Please also check your NODE_PATH settings because the library can not find the acorn parser module under ~/node_modules/odata-server/lib/jaydata/node-modules/acorn

Resources