- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在克隆一个 repo 并在运行 npm install
时收到以下错误
ENOENT:no such file or directory, rename '/Users/waston/Desktop/hm/STEMuli_MaterialUI/node_modules/.staging/client-6b05b6f7/node_modules/@babel/helper-module-imports' -> '/Users/waston/Desktop/hm/STEMuli_MaterialUI/node_modules/.staging/@babel/helper-module-imports-b86e8d76'
我想也许如果我执行 npm install --save-dev @babel/helper-module-imports
可能会修复它,但即使这样做也会给我同样的错误。
package.json(服务器)
"dependencies": {
"azure-storage": "^2.10.2",
"bcryptjs": "^2.4.3",
"body-parser": "^1.18.2",
"cd": "^0.3.3",
"client": "file:client",
"concurrently": "^3.5.1",
"express": "^4.16.3",
"gravatar": "^1.6.0",
"install": "^0.12.2",
"into-stream": "^4.0.0",
"jsonwebtoken": "^8.2.0",
"mongoose": "^5.0.12",
"multer": "^1.4.1",
"multer-azure-storage": "^0.2.0",
"node-sass": "^4.10.0",
"npm": "^6.4.1",
"passport": "^0.4.0",
"passport-jwt": "^4.0.0",
"validator": "^9.4.1"
},
"scripts": {
"client-install": "npm install --prefix client",
"start": "node server.js",
"server": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently \"npm run server\" \"npm run client\"",
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client"
}
客户端 package.json"
dependencies": {
"@babel/runtime": "7.0.0-beta.55",
"@material-ui/core": "1.5.0",
"@material-ui/icons": "2.0.2",
"@types/googlemaps": "3.30.11",
"@types/markerclustererplus": "2.1.33",
"ajv": "6.5.2",
"axios": "^0.18.0",
"blueimp-file-upload": "^9.22.0",
"chartist": "0.10.1",
"cloudinary-jquery-file-upload": "^2.5.0",
"cloudinary-react": "^1.0.6",
"fullcalendar": "^3.0.0",
"fullcalendar-reactwrapper": "^1.0.7",
"fullcalendar-reactwrapper-scheduler": "^1.0.7",
"history": "4.7.2",
"install": "^0.12.2",
"jquery": "^3.3.1",
"jwt-decode": "^2.2.0",
"material-design-icons": "^3.0.1",
"moment": "^2.22.2",
"moment-timezone": "^0.5.21",
"node-sass-chokidar": "1.3.3",
"npm": "^6.4.1",
"npm-run-all": "4.1.3",
"perfect-scrollbar": "1.4.0",
"prop-types": "15.6.2",
"react": "^16.3.1",
"react-big-calendar": "^0.19.2",
"react-bootstrap": "^0.32.1",
"react-bootstrap-sweetalert": "4.4.1",
"react-chartist": "0.13.1",
"react-chat-widget": "^2.1.4-1",
"react-datetime": "2.15.0",
"react-dnd": "^5.0.0",
"react-dnd-html5-backend": "^5.0.1",
"react-dom": "^16.3.1",
"react-file-viewer": "^0.5.0",
"react-google-maps": "9.4.5",
"react-icons": "^3.0.5",
"react-jvectormap": "0.0.3",
"react-material-icons": "^1.0.3",
"react-moment": "^0.7.0",
"react-nouislider": "2.0.1",
"react-parallax": "^2.0.0",
"react-phone-number-input": "^2.2.14",
"react-player": "^1.6.6",
"react-redux": "^5.0.7",
"react-router-dom": "^4.2.2",
"react-scripts": "1.1.4",
"react-select": "^2.1.1",
"react-slick": "0.23.1",
"react-stepzilla": "^4.8.0",
"react-svg-icons": "^0.3.0",
"react-swipeable-views": "0.12.16",
"react-table": "6.8.6",
"react-tagsinput": "3.19.0",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
"socket.io-client": "^2.1.1",
"video-react": "^0.13.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-module-resolver": "^3.1.1",
"babel-plugin-import-rename": "^1.0.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-es2015": "^6.24.1"
},
"optionalDependencies": {
"babel-eslint": "^7.2.3",
"eslint": "^4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.10.0",
"prettier": "^1.13.7"
},
"scripts": {
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive",
"start-js": "react-scripts start",
"start": "npm-run-all -p watch-css start-js",
"build": "npm run build-css && react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"lint:check": "eslint . --ext=js,jsx; exit 0",
"lint:fix": "eslint . --ext=js,jsx --fix; exit 0",
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start",
"build-package-css": "node-sass-chokidar src/materialComponents/assets/scss/material-kit-react.scss dist/material-kit-react.css",
"build-package": "npm run build-package-css && babel src --out-dir dist",
"deploy": "npm run build"
},
最佳答案
删除你的 package-lock.json 和 node_modules 文件夹,然后运行 npm install
关于javascript - npm install 说找不到文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53613103/
我正在使用npm v5.3.0。 现在,我想将npm更新到v5.4.1。要执行此操作,请在终端中键入以下内容: npm install -g npm 没有任何错误。但是,当我键入npm -v时,得到的
我已经使用 vue-cli 两个星期了,直到今天一切正常。我在本地建立这个项目。 https://drive.google.com/open?id=0BwGw1zyyKjW7S3RYWXRaX24tQ
有什么方法可以更改或重置全局 npm 注册表。 感谢您的帮助。 最佳答案 在终端中运行以下命令以恢复到默认注册表 npm config set registry https://registry.np
查看 npm 的 documentation , 'i' 是 'install' 的别名,是否有任何情况下最好使用完整的 'npm install'? 最佳答案 两者之间没有具体区别。这只是一个懒惰的
目前,每次将更改推送到 GIT 存储库时,我都会发布新版本的 NPM 包。我的大部分更改只是愚蠢的补丁。我使用 NPM 作为工具,在我的许多项目中启用版本控制和代码重用。经过一个月的工作,我已经完成了
我运行的时候总是报错 npm install 谁知道怎么解决 npm ERR! Darwin 13.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/b
“npm uninstall packageName”删除包并更新 package.json 文件。 但是来自 npm 文档 - To remove a package from the depend
我的背景更熟悉 composer .我收到 gulp (等)进行构建过程和学习 node以及如何使用 npm我走的时候。 很奇怪(再次来自 composer 背景)composer.lock默认情况下
我看到的许多 npm 模块名称前面都添加了技术名称,例如 react-native 或 jquery 等。由于我们已经在 package.json 文件中提供了关键字,因此遵循此约定有什么好处。我问这
我检查了 connect-privkey-to-provider模块在依赖项中。但是,它一直在说 模块 'connect-privkey-to-provider' 是无关的 npm 和 找不到模块 '
我正在进行持续集成并发现了 npm ci命令。 我不知道在我的工作流程中使用此命令有什么优势。 速度更快吗?这会让测试变得更难吗?好吗? 最佳答案 来自the official documentati
我有一个要发布到 NPM 的包,其中还包含如下所示的演示目录: . +-- demo | +-- src | | +-- main.js | +-- package.json +--
如果我打开集成终端并运行 npm -v 它会起作用。 但是,如果我直接从 NPM SCRIPTS 运行它,它就不起作用。 评论中要求的更多详细信息 //由 Fogmeister 编辑 我也有这个问题,
我正在尝试安装 gulp,当我写 npm install 时我得到了这个问题: npm ERR! code 1 npm ERR! path D:\www\wegrow\node_modules\nod
这个问题已经有答案了: npm test --codecoverage doesn't generate report (3 个回答) 已关闭 4 年前。 当我执行npm test --code-co
我能够运行 npm start 和 npm run start 命令。我用过create-react-app创建我的应用程序。为了在 CSS 模块中进行配置更改,我想运行 npmject 但它会抛出错
我正在使用npm run script执行“构建”和“测试”等任务。 例如,我的 package.json 如下所示: { "name": "fulfillment-service", "ve
我第一次将 npm 模块添加到我的项目中(jshint、optimg、jpgo)。我注意到有些项目,当我做 npm 运行 [名称] ,给出“sh: [name]: command not found”
我已经在 Windows 上安装了 Ubuntu Bash。我已经有 nodejs和 npm在我的 Windows 机器上 C:\Program Files\nodejs .在 Windows 的 b
我正在尝试运行 npm install bitgo命令但在终端上出现以下错误, npm ERR! code EMFILE npm ERR! syscall spawn git npm ERR! pat
我是一名优秀的程序员,十分优秀!