无法使用 npm 安装 history.js
cannot install history.js using npm
)
我无法在 Ubuntu 15.10 上使用 npm 安装 history.js。
节点 v5.0.0
npm v3.5.3
日志:
sudo npm i history
> history@1.17.0 postinstall /media/programs/WEB/Projects/React/Redux/node_modules/history
> node ./npm-scripts/postinstall.js
module.js:339
throw err;
^
Error: Cannot find module '/media/programs/WEB/Projects/React/Redux/node_modules/history/npm-scripts/postinstall.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:136:18)
at node.js:972:3
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
npm ERR! Linux 4.2.0-22-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "history"
npm ERR! code ELIFECYCLE
npm ERR! history@1.17.0 postinstall: `node ./npm-scripts/postinstall.js`
npm ERR! Exit status 1
npm ERR! Failed at the history@1.17.0 postinstall script 'node ./npm-scripts/postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the history package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./npm-scripts/postinstall.js
你有什么想法吗?
P.S对不起我的英语。
这是一个老问题,有些软件包在某些 os 上不支持。在 npm 3.3.12 之前的 fsevents@1.0.6 也发生了同样的问题,但它已在 3.3.12 中修复。
现在在 npm 3.5.3 中,它再次产生问题,因此您可以等待 npm 的下一个版本。
你可以阅读这篇文章here
) 我无法在 Ubuntu 15.10 上使用 npm 安装 history.js。
节点 v5.0.0
npm v3.5.3
日志:
sudo npm i history
> history@1.17.0 postinstall /media/programs/WEB/Projects/React/Redux/node_modules/history
> node ./npm-scripts/postinstall.js
module.js:339
throw err;
^
Error: Cannot find module '/media/programs/WEB/Projects/React/Redux/node_modules/history/npm-scripts/postinstall.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:136:18)
at node.js:972:3
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
npm ERR! Linux 4.2.0-22-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "history"
npm ERR! code ELIFECYCLE
npm ERR! history@1.17.0 postinstall: `node ./npm-scripts/postinstall.js`
npm ERR! Exit status 1
npm ERR! Failed at the history@1.17.0 postinstall script 'node ./npm-scripts/postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the history package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./npm-scripts/postinstall.js
你有什么想法吗?
P.S对不起我的英语。
这是一个老问题,有些软件包在某些 os 上不支持。在 npm 3.3.12 之前的 fsevents@1.0.6 也发生了同样的问题,但它已在 3.3.12 中修复。
现在在 npm 3.5.3 中,它再次产生问题,因此您可以等待 npm 的下一个版本。
你可以阅读这篇文章here