【发布时间】:2017-06-13 10:59:30
【问题描述】:
我正在尝试使用链接 https://code.visualstudio.com/docs/nodejs/reactjs-tutorial 创建反应应用程序 但是当我运行命令时出现以下错误
create-react-app 我的应用
错误
Creating a new React app in C:\Users\thirunah\Documents\Visual Studio Code\my-app.
Installing packages. This might take a couple minutes.
Installing react, react-dom, and react-scripts...
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.17 (node_modules\react-scripts\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","ar
ch":"x64"})
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "--save-exact" "
react" "react-dom" "react-scripts"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! code E403
npm ERR! unregistered users are not allowed to access package @timer/detect-port : @timer/detect-port
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
【问题讨论】:
-
你看过this question吗?
-
是的。我检查了我的注册表,它和上面提到的一样。
-
您是否在管理命令 shell 中运行? (这可能会有所帮助)。
-
是的,我在管理 cmd 中运行
标签: node.js reactjs visual-studio-code npm-install