我想从本地软件包安装angular/cli
,我已经下载了包含package.json
的软件包文件夹以及所有其他文件:
bin
commands
CONTRIBUTING.md
ember-cli
lib
LICENSE
models
node_modules
package.json
plugins
README.md
tasks
upgrade
utilities
我尝试了npm install 'path/to/package'
和错误日志:
6041 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "C:\\Users\\t207322\\AppData\\Roaming\\npm-cache\\@angular\\cli\\1.4.4\\package"
6042 verbose node v9.3.0
6043 verbose npm v5.5.1
6044 error path C:\Users\t207322\node_modules\cryptiles\node_modules
6045 error code EPERM
6046 error errno -4048
6047 error syscall scandir
6048 error Error: EPERM: operation not permitted, scandir 'C:\Users\t207322\node_modules\cryptiles\node_modules'
6048 error { Error: EPERM: operation not permitted, scandir 'C:\Users\t207322\node_modules\cryptiles\node_modules'
6048 error stack: 'Error: EPERM: operation not permitted, scandir \'C:\\Users\\t207322\\node_modules\\cryptiles\\node_modules\'',
6048 error errno: -4048,
6048 error code: 'EPERM',
6048 error syscall: 'scandir',
6048 error path: 'C:\\Users\\t207322\\node_modules\\cryptiles\\node_modules' }
6049 error Please try running this command again as root/Administrator.
6050 verbose exit [ -4048, true ]
我还尝试将软件包插入'AppData \ Roaming \ npm-cache'并运行npm link
,结果相同:
2017 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "link"
2018 verbose node v9.3.0
2019 verbose npm v5.5.1
2020 error path C:\Users\t207322\AppData\Roaming\npm-cache\@angular\cli\1.4.4\package\node_modules\scss-tokenizer\node_modules
2021 error code EPERM
2022 error errno -4048
2023 error syscall scandir
2024 error Error: EPERM: operation not permitted, scandir 'C:\Users\t207322\AppData\Roaming\npm-cache\@angular\cli\1.4.4\package\node_modules\scss-tokenizer\node_modules'
2024 error { Error: EPERM: operation not permitted, scandir 'C:\Users\t207322\AppData\Roaming\npm-cache\@angular\cli\1.4.4\package\node_modules\scss-tokenizer\node_modules'
2024 error stack: 'Error: EPERM: operation not permitted, scandir \'C:\\Users\\t207322\\AppData\\Roaming\\npm-cache\\@angular\\cli\\1.4.4\\package\\node_modules\\scss-tokenizer\\node_modules\'',
2024 error errno: -4048,
2024 error code: 'EPERM',
2024 error syscall: 'scandir',
2024 error path: 'C:\\Users\\t207322\\AppData\\Roaming\\npm-cache\\@angular\\cli\\1.4.4\\package\\node_modules\\scss-tokenizer\\node_modules' }
2025 error Please try running this command again as root/Administrator.
2026 verbose exit [ -4048, true ]
那么,是否有另一种使用本地包安装角度/ cli的方法?