ATOM / apm:无法找到模块" npm"

时间:2016-07-31 13:54:01

标签: node.js windows npm atom-editor

在Windows 10中:

$nin

错误告诉我,我没有npm,但我把它搞定,并且是最新的。 问题是什么?

  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)

0 个答案:

没有答案