无法为Phoenix Up& amp;安装semver运行项目

时间:2017-11-01 22:59:21

标签: node.js macos elixir phoenix-framework

我试图强行删除npm&节点按Npm install cannot find module 'semver'

<\ n> Elixir版本(elixir -v):Erlang / OTP 20 [erts-9.1.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads :10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.5.2

Phoenix version (mix deps): installed today
NodeJS version (node -v): 8.6.0
NPM version (npm -v):
I force uninstalled node & npm with node, then did
brew install npm
brew install node

我仍然收到此错误:

~/hello/assets/npm install
module.js:538
    throw err;
    ^

Error: Cannot find module 'semver'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/unsupported.js:2:14)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)

如何在OSX上安装semver并启动并运行我的hello world项目?

0 个答案:

没有答案